package com.gitee.shigen.lucene.dao;

import com.gitee.shigen.lucene.vo.Content;
import java.io.IOException;
import java.util.List;

/**
 * @author shigenfu
 * @date 2023/12/16 21:57
 */
public interface ContentDao {

    long save(List<Content> contentList) throws IOException;

    void deleteIndexById(String id) throws IOException;

    void deleteAll() throws IOException;

    List<Content> search(String[] fields, String keyword, int page, int pageSize);

    Content getDocumentById(String id) throws IOException;
}
